package org.dwell.vertx3.demos.http;

import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClient;
import io.vertx.core.http.HttpClientOptions;

/**
 * Created by JianGuo on 2016/1/15.
 */
public class HttpClientTest {
    public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();
        HttpClientOptions options = new HttpClientOptions().setKeepAlive(false).setDefaultPort(9999);
        HttpClient client = vertx.createHttpClient(options);

        client.getNow("/some-uri", response -> {
            System.out.println("Received response with status code " + response.statusCode());
        });



    }
}
